package com.team11.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author mahongtao
 * @version 1.0
 * @date 2021/7/11 15:33
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("l_information")
@ApiModel(value="获取请假分页的内容", description="获取请假分页的内容")
public class InformationLIst {

    @ApiModelProperty(value = "请假表id")
    @TableId(value = "l_id", type = IdType.AUTO)
    private Integer lId;

    @ApiModelProperty(value = "学生id")
    @TableField("sid")
    private Integer sid;

    @ApiModelProperty(value = "申请提交日期")
    @TableField("l_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime lDate;

    @ApiModelProperty(value = "主题")
    @TableField("l_theme")
    private String lTheme;

    @ApiModelProperty(value = "请假开始时间")
    @TableField("l_begin")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime lBegin;

    @ApiModelProperty(value = "请假结束时间")
    @TableField("l_end")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime lEnd;

    @ApiModelProperty(value = "请假原因")
    @TableField("l_reason")
    private String lReason;

    @ApiModelProperty(value = "请假具体原因")
    @TableField("l_jt_reason")
    private String lJtReason;


    @ApiModelProperty(value = "审批状态")
    @TableField("l_status")
    private Integer lStatus;


    @ApiModelProperty(value = "院系")
    @TableField("c_department")
    private String cDepartment;

    @ApiModelProperty(value = "专业")
    @TableField("c_major")
    private String cMajor;

    @ApiModelProperty(value = "年级")
    @TableField("c_grade")
    private String cGrade;

    @ApiModelProperty(value = "班级")
    @TableField("c_class")
    private String cClass;

    @ApiModelProperty(value = "学号")
    @TableId("s_id")
    private Integer sNumber;

    @ApiModelProperty(value = "学生姓名")
    @TableField("s_name")
    private String sName;

}
